var app = getApp()
var Ajax = require("../../utils/ajax.js")
var Modal = require("../../utils/modal.js")
Page({
  data: {
  },
  onShow(e) {
    this.setData({
      phoneheight: app.globalData.phoneheight,
      fix_position: app.globalData.fix_position
    })
    this.setData({
      userInfo: { nickname: app.globalData.activemember["grant.nickname"], avatarurl: app.globalData.activemember.avatarurl}
    })
  },
  deletemember(e){
    Modal.showModal("确定删除该用户",()=>{
      Ajax.AsyncPost("/grant/delete_member/", {
        A_id: app.globalData.activemember.A_id,
        B_id: app.globalData.activemember.B_id
      },(data)=>{
        wx.navigateBack();
      })
    });
  }
})